package Day29.lvp;


//士兵使用枪支
public class Solider {
    private AbstracTGUN gun;

    public void setGun(AbstracTGUN gun) {
        this.gun = gun;
    }

    public void killEnemy(){
        System.out.println("士兵杀敌");
        gun.shoot();
    }

}
